<template>
  <div>
    <LifeCycle v-if="visiable"></LifeCycle>
    <button @click="visiable=!visiable">switch</button>
  </div>
</template>

<script lang='ts' setup>
import LifeCycle from './components/LifeCycle.vue';
import {ref} from 'vue'
let visiable=ref<boolean>(true)

</script>

<style lang='scss' scoped>
</style>